package com.htl.exampro.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.htl.exampro.course.pojo.domain.ChapterDO;
import com.htl.exampro.course.pojo.vo.ChapterVO;

import java.util.List;

public interface ChapterService extends IService<ChapterDO> {
    List<ChapterVO> getChaptersByCourseId(Long courseId);

    void saveOrUpdateChapters(Long courseId, List<ChapterVO> detailVOS);

    void deleteChapter(Long chapterId);

    void saveChapter(ChapterVO detailVOS);

    void updataChapter(ChapterVO detailVOS);
}